package com.ny.demo0427;

import com.ny.demo0427.USB;

// 鼠标类实现USB接口
public class Mouse implements USB {
    @Override
    public void open() {
        System.out.println("鼠标已连接");
    }

    @Override
    public void close() {
        System.out.println("鼠标已断开");
    }

    // 鼠标特有方法
    public void click() {
        System.out.println("鼠标点击事件触发");
    }
}
